import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


import 'bootstrap/dist/js/bootstrap.bundle.min.js';//导入bootstrap5
import 'bootstrap/dist/css/bootstrap.min.css';//导入bootstrap5

import 'bootstrap';//导入bootstrap5图标库
import 'bootstrap-icons/font/bootstrap-icons.css';//导入bootstrap5图标库

import ElementPlus from 'element-plus'//导入element plus
import 'element-plus/dist/index.css'//导入element plus

import * as ElementPlusIconsVue from '@element-plus/icons-vue'//导入element plus图标库

import { createPinia } from 'pinia'//导入pinia

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.use(ElementPlus)

app.use(pinia)

app.use(router)

app.mount('#app')//挂载
